# encoding: utf-8
"""
@author:auto generate code
@license: Apache Licence
@file: add_subscribe_builder.py
@time: 2020-07-18 18:21:02
@contact: tongdangdang1@yy.com
"""
from sdktest_module.utils.api_base_builder import ApiBaseBuilder, parameter
from sdktest_module.utils.constant import *


def send_command(cmd):
    pass

def FeedbackApiBuilder(platform):
    if platform == ANDROID:
        return FeedbackApiBuilder_android()
    if platform == IOS:
        return FeedbackApiBuilder_ios()


class FeedbackApiBuilder_android(ApiBaseBuilder):
    api_name = "com.yy.sdktest.rpc.utils.FeedbackUtil.feedBackLogByHttp"

    @parameter(1, "String")
    def appid(self, appid):
        return self

    @parameter(2, "String")
    def version(self, version):
        return self

    @parameter(3, "String")
    def uid(self, uid):
        return self

    @parameter(4, "String")
    def msg(self, msg):
        return self

    @parameter(5, "String")
    def logPath(self, logPath):
        return self


class FeedbackApiBuilder_ios(ApiBaseBuilder):
    api_name = "MediaManager.sendAutotestFeedback:"

    @parameter(1, "NSString")
    def msg(self, msg):
        return self



def feedback(appid, version, uid, msg, logPath):
    api_cmd = FeedbackApiBuilder().appid(appid).version(version).uid(uid).msg(msg).logPath(logPath).build()
    send_command(api_cmd)


if __name__ == '__main__':
    FeedbackApiBuilder().build()
